package com.payment.web.controller.app;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.payment.common.base.AjaxResult;
import com.payment.system.service.IMerchantService;

/**
 * @author fuzhili
 * @Description: 我的账户管理
 *
 * @date 2019/2/22 17:27
 */
@Controller
@RequestMapping("/app/myAccount")
public class MyAccountController {
    @Autowired
    private IMerchantService merchantService;
    /**
     * 返回：总收益， 可提现 ，已提现,储蓄卡卡号,储蓄卡持卡人手机号,储蓄卡图片,储蓄卡名称,储蓄卡持卡人姓名
     * @param merchantId
     * @return
     */
    @PostMapping("/moneyTotal")
    @ResponseBody
    public AjaxResult moneyTotal(String merchantId) {
        return merchantService.selectMoneyTotalByMerchantId(merchantId);
    }


}
